﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EzDesk.Core.Model;
using System.Collections.Specialized;
using System.ServiceModel;

namespace EzDesk.Core
{
    [ServiceContract]
    public interface IAppPortalService
    {
        [OperationContract]
        App GetAppByName(string appName);

        [OperationContract]
        string GetAppDomainName(string appName, string userAgent);

        [OperationContract]
        HttpContent GetPortalRequests(
            string httpMethod,
            string targetUrl,
            string appName, 
            Guid currentUserId,
            IList<KeyValuePair<string, string>> formParameters = null);

        [OperationContract]
        Guid GetUserIdByToken(string tokenString);
    }
}
